package com.kimari.Singleton;

/**
 * 线程安全的懒汉式
 *
 * @author Reimu
 */
public class LazyManSafe {
    private LazyManSafe() {

    }

    private static LazyManSafe lazyManSafe;

    public static synchronized LazyManSafe getInstance() {
        if (lazyManSafe == null) {
            lazyManSafe = new LazyManSafe();
        }
        return lazyManSafe;
    }
}
